function toSuper(){
	document.getElementById( "addItem" ).setAttribute( "name", "menuAdd" );
	document.getElementById( "addNews" ).setAttribute( "name","#" );
	document.getElementById( "deleteItem" ).setAttribute( "name","#" );
	document.getElementById( "updateItem" ).setAttribute( "name","#" );
}

function toMenu( id ){
	setMenuUrlSuffix( "addItem", "itemAdd", id );
	setMenuUrlSuffix( "updateItem", "menuUpdate", id );
	document.getElementById( "addNews" ).setAttribute( "name","#" );
	document.getElementById( "deleteItem" ).setAttribute( "name","#" );
	
}

function toItem( id ){
	setItemUrlSuffix( "addNews", "newsAdd",   id );
	setItemUrlSuffix( "updateItem", "itemUpdate", id );
	setItemUrlSuffix( "deleteItem", "itemDelete", id );
	document.getElementById( "addItem" ).setAttribute( "name","#" );
}

function setMenuUrlSuffix( eleID, actionName, id ){
	setUrlSuffix( eleID, actionName, "menu.id", id );
}

function setItemUrlSuffix( eleID, actionName, id ){
	setUrlSuffix( eleID, actionName, "item.id", id );
}

function setUrlSuffix( eleID, actionName, paraName, id ){
	actionName = actionName + ".action";
	var con = document.getElementById( eleID );
	var urlSuffix = actionName + "?" + paraName + "="  + id; 
	con.setAttribute( "name", urlSuffix );
}